import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Reg from '@/components/Reg'
import Login from '@/components/Login'
import UserInfo from '@/components/UserInfo'
import Address from '@/components/Address'
import Home from '@/components/Home'
import List from '@/components/List'
import Cart from '@/components/Cart'
import PlaceOrder from '@/components/PlaceOrder'
import OrderSuccess from '@/components/OrderSuccess'
import UserOrder from '@/components/UserOrder'
import Comment from '@/components/Comment'
import Detail from '@/components/Detail'
import BindAccount from '@/components/BindAccount'
import Teacher from '@/components/Teacher'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/teacher',
      name: 'Teacher',
      component: Teacher
    },
    {
      path: '/bindAccount',
      name: 'BindAccount',
      component: BindAccount
    },
    {
      path: '/detail',
      name: 'Detail',
      component: Detail
    },
    {
      path: '/comment',
      name: 'Comment',
      component: Comment
    },
    {
      path: '/userOrder',
      name: 'UserOrder',
      component: UserOrder
    },
    {
      path: '/orderSuccess',
      name: 'OrderSuccess',
      component: OrderSuccess
    },
    {
      path: '/placeOrder',
      name: 'PlaceOrder',
      component: PlaceOrder
    },
    {
      path: '/cart',
      name: 'Cart',
      component: Cart
    },
    {
      path: '/list',
      name: 'List',
      component: List
    },
    {
      path: '/home',
      name: 'Home',
      component: Home
    },
    {
      path: '/address',
      name: 'Address',
      component: Address
    },
    {
      path: '/userInfo',
      name: 'UserInfo',
      component: UserInfo
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/reg',
      name: 'Reg',
      component: Reg
    },
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    }
  ]
})
